Model fit

Column

Assumption checks

Column

Indices of model fit

Metric Value
AIC 17483.89
AICc 17484.02
BIC 17601.28
R2 (cond.) 0.03
R2 (marg.) 0.03
ICC 3.82e-03
RMSE 1.36
Sigma 1.36

For interpretation of performance metrics, please refer to this documentation.

Parameter estimates

Column

Plot

Column

Tabular summary

# Fixed Effects
Parameter Coefficient SE 95% CI t(5005) p
(Intercept) 5.17 0.57 (4.06, 6.28) 9.12 < .001
educacion rec [Ed Media] -0.15 0.08 (-0.30, -1.93e-03) -1.99 0.047
educacion rec [Ed Tecnica] -0.13 0.08 (-0.29, 0.04) -1.49 0.136
educacion rec [Universidad o posgrado] -0.09 0.09 (-0.26, 0.07) -1.08 0.280
educacion rec [Ns/Nr] -0.02 0.08 (-0.17, 0.13) -0.28 0.783
libros rec [Más de 25] 0.03 0.04 (-0.05, 0.12) 0.77 0.441
apod acc div 0.08 0.02 (0.05, 0.12) 4.46 < .001
civic [Medio] 0.26 0.05 (0.17, 0.36) 5.40 < .001
civic [Alto] 0.38 0.05 (0.28, 0.48) 7.54 < .001
ap dis 0.13 0.03 (0.06, 0.19) 3.79 < .001
mean apdis 0.06 0.11 (-0.14, 0.27) 0.60 0.546
etnia2 [Medio] 0.12 0.06 (-4.93e-03, 0.24) 1.88 0.060
etnia2 [Alto] 0.10 0.06 (-0.02, 0.23) 1.63 0.103
inmigrante2 [Medio] 0.02 0.07 (-0.12, 0.16) 0.30 0.761
inmigrante2 [Alto] -0.07 0.09 (-0.25, 0.12) -0.72 0.470
escolaridad 1.19e-03 0.05 (-0.11, 0.11) 0.02 0.983
# Random Effects
Parameter Coefficient
SD (Intercept: mrbd) 0.08
SD (Residual) 1.36

To find out more about table summary options, please refer to this documentation.

Predicted Values

Column

Plot

Error in match.arg(tolower(range), c("range", "iqr", "ci", "hdi", "eti", : 'arg' should be one of "range", "iqr", "ci", "hdi", "eti", "sd", "mad"
Error in lapply(text_modelbased, function(i) {: object 'text_modelbased' not found
Error in is.ggplot(x): object 'all_plots' not found

Column

Tabular summary

Error in eval(expr, envir, enclos): object 'text_modelbased' not found

Text reports

Column

Textual summary

We fitted a linear mixed model (estimated using REML and nloptwrap optimizer) to predict est_acc_div with educacion_rec (formula: est_acc_div ~ educacion_rec + libros_rec + apod_acc_div + civic + ap_dis + mean_apdis + etnia2 + inmigrante2 + escolaridad). The model included mrbd as random effect (formula: ~1 | mrbd). The model’s total explanatory power is weak (conditional R2 = 0.03) and the part related to the fixed effects alone (marginal R2) is of 0.03. The model’s intercept, corresponding to educacion_rec = Ed Basica, is at 5.17 (95% CI (4.06, 6.28), t(5005) = 9.12, p < .001). Within this model:

  • The effect of educacion rec (Ed Media) is statistically significant and negative (beta = -0.15, 95% CI (-0.30, -1.93e-03), t(5005) = -1.99, p = 0.047; Std. beta = -0.11, 95% CI (-0.22, -1.40e-03))
  • The effect of educacion rec (Ed Tecnica) is statistically non-significant and negative (beta = -0.13, 95% CI (-0.29, 0.04), t(5005) = -1.49, p = 0.136; Std. beta = -0.09, 95% CI (-0.21, 0.03))
  • The effect of educacion rec (Universidad o posgrado) is statistically non-significant and negative (beta = -0.09, 95% CI (-0.26, 0.07), t(5005) = -1.08, p = 0.280; Std. beta = -0.07, 95% CI (-0.19, 0.05))
  • The effect of educacion rec (Ns/Nr) is statistically non-significant and negative (beta = -0.02, 95% CI (-0.17, 0.13), t(5005) = -0.28, p = 0.783; Std. beta = -0.02, 95% CI (-0.12, 0.09))
  • The effect of libros rec (Más de 25) is statistically non-significant and positive (beta = 0.03, 95% CI (-0.05, 0.12), t(5005) = 0.77, p = 0.441; Std. beta = 0.02, 95% CI (-0.04, 0.08))
  • The effect of apod acc div is statistically significant and positive (beta = 0.08, 95% CI (0.05, 0.12), t(5005) = 4.46, p < .001; Std. beta = 0.06, 95% CI (0.04, 0.09))
  • The effect of civic (Medio) is statistically significant and positive (beta = 0.26, 95% CI (0.17, 0.36), t(5005) = 5.40, p < .001; Std. beta = 0.19, 95% CI (0.12, 0.26))
  • The effect of civic (Alto) is statistically significant and positive (beta = 0.38, 95% CI (0.28, 0.48), t(5005) = 7.54, p < .001; Std. beta = 0.28, 95% CI (0.20, 0.35))
  • The effect of ap dis is statistically significant and positive (beta = 0.13, 95% CI (0.06, 0.19), t(5005) = 3.79, p < .001; Std. beta = 0.06, 95% CI (0.03, 0.09))
  • The effect of mean apdis is statistically non-significant and positive (beta = 0.06, 95% CI (-0.14, 0.27), t(5005) = 0.60, p = 0.546; Std. beta = 9.53e-03, 95% CI (-0.02, 0.04))
  • The effect of etnia2 (Medio) is statistically non-significant and positive (beta = 0.12, 95% CI (-4.93e-03, 0.24), t(5005) = 1.88, p = 0.060; Std. beta = 0.08, 95% CI (-3.56e-03, 0.17))
  • The effect of etnia2 (Alto) is statistically non-significant and positive (beta = 0.10, 95% CI (-0.02, 0.23), t(5005) = 1.63, p = 0.103; Std. beta = 0.08, 95% CI (-0.02, 0.17))
  • The effect of inmigrante2 (Medio) is statistically non-significant and positive (beta = 0.02, 95% CI (-0.12, 0.16), t(5005) = 0.30, p = 0.761; Std. beta = 0.02, 95% CI (-0.09, 0.12))
  • The effect of inmigrante2 (Alto) is statistically non-significant and negative (beta = -0.07, 95% CI (-0.25, 0.12), t(5005) = -0.72, p = 0.470; Std. beta = -0.05, 95% CI (-0.18, 0.08))
  • The effect of escolaridad is statistically non-significant and positive (beta = 1.19e-03, 95% CI (-0.11, 0.11), t(5005) = 0.02, p = 0.983; Std. beta = 5.32e-04, 95% CI (-0.05, 0.05))

Standardized parameters were obtained by fitting the model on a standardized version of the dataset. 95% Confidence Intervals (CIs) and p-values were computed using a Wald t-distribution approximation., We fitted a linear mixed model (estimated using REML and nloptwrap optimizer) to predict est_acc_div with libros_rec (formula: est_acc_div ~ educacion_rec + libros_rec + apod_acc_div + civic + ap_dis + mean_apdis + etnia2 + inmigrante2 + escolaridad). The model included mrbd as random effect (formula: ~1 | mrbd). The model’s total explanatory power is weak (conditional R2 = 0.03) and the part related to the fixed effects alone (marginal R2) is of 0.03. The model’s intercept, corresponding to libros_rec = Menos de 25, is at 5.17 (95% CI (4.06, 6.28), t(5005) = 9.12, p < .001). Within this model:

  • The effect of educacion rec (Ed Media) is statistically significant and negative (beta = -0.15, 95% CI (-0.30, -1.93e-03), t(5005) = -1.99, p = 0.047; Std. beta = -0.11, 95% CI (-0.22, -1.40e-03))
  • The effect of educacion rec (Ed Tecnica) is statistically non-significant and negative (beta = -0.13, 95% CI (-0.29, 0.04), t(5005) = -1.49, p = 0.136; Std. beta = -0.09, 95% CI (-0.21, 0.03))
  • The effect of educacion rec (Universidad o posgrado) is statistically non-significant and negative (beta = -0.09, 95% CI (-0.26, 0.07), t(5005) = -1.08, p = 0.280; Std. beta = -0.07, 95% CI (-0.19, 0.05))
  • The effect of educacion rec (Ns/Nr) is statistically non-significant and negative (beta = -0.02, 95% CI (-0.17, 0.13), t(5005) = -0.28, p = 0.783; Std. beta = -0.02, 95% CI (-0.12, 0.09))
  • The effect of libros rec (Más de 25) is statistically non-significant and positive (beta = 0.03, 95% CI (-0.05, 0.12), t(5005) = 0.77, p = 0.441; Std. beta = 0.02, 95% CI (-0.04, 0.08))
  • The effect of apod acc div is statistically significant and positive (beta = 0.08, 95% CI (0.05, 0.12), t(5005) = 4.46, p < .001; Std. beta = 0.06, 95% CI (0.04, 0.09))
  • The effect of civic (Medio) is statistically significant and positive (beta = 0.26, 95% CI (0.17, 0.36), t(5005) = 5.40, p < .001; Std. beta = 0.19, 95% CI (0.12, 0.26))
  • The effect of civic (Alto) is statistically significant and positive (beta = 0.38, 95% CI (0.28, 0.48), t(5005) = 7.54, p < .001; Std. beta = 0.28, 95% CI (0.20, 0.35))
  • The effect of ap dis is statistically significant and positive (beta = 0.13, 95% CI (0.06, 0.19), t(5005) = 3.79, p < .001; Std. beta = 0.06, 95% CI (0.03, 0.09))
  • The effect of mean apdis is statistically non-significant and positive (beta = 0.06, 95% CI (-0.14, 0.27), t(5005) = 0.60, p = 0.546; Std. beta = 9.53e-03, 95% CI (-0.02, 0.04))
  • The effect of etnia2 (Medio) is statistically non-significant and positive (beta = 0.12, 95% CI (-4.93e-03, 0.24), t(5005) = 1.88, p = 0.060; Std. beta = 0.08, 95% CI (-3.56e-03, 0.17))
  • The effect of etnia2 (Alto) is statistically non-significant and positive (beta = 0.10, 95% CI (-0.02, 0.23), t(5005) = 1.63, p = 0.103; Std. beta = 0.08, 95% CI (-0.02, 0.17))
  • The effect of inmigrante2 (Medio) is statistically non-significant and positive (beta = 0.02, 95% CI (-0.12, 0.16), t(5005) = 0.30, p = 0.761; Std. beta = 0.02, 95% CI (-0.09, 0.12))
  • The effect of inmigrante2 (Alto) is statistically non-significant and negative (beta = -0.07, 95% CI (-0.25, 0.12), t(5005) = -0.72, p = 0.470; Std. beta = -0.05, 95% CI (-0.18, 0.08))
  • The effect of escolaridad is statistically non-significant and positive (beta = 1.19e-03, 95% CI (-0.11, 0.11), t(5005) = 0.02, p = 0.983; Std. beta = 5.32e-04, 95% CI (-0.05, 0.05))

Standardized parameters were obtained by fitting the model on a standardized version of the dataset. 95% Confidence Intervals (CIs) and p-values were computed using a Wald t-distribution approximation., We fitted a linear mixed model (estimated using REML and nloptwrap optimizer) to predict est_acc_div with apod_acc_div (formula: est_acc_div ~ educacion_rec + libros_rec + apod_acc_div + civic + ap_dis + mean_apdis + etnia2 + inmigrante2 + escolaridad). The model included mrbd as random effect (formula: ~1 | mrbd). The model’s total explanatory power is weak (conditional R2 = 0.03) and the part related to the fixed effects alone (marginal R2) is of 0.03. The model’s intercept, corresponding to apod_acc_div = 0, is at 5.17 (95% CI (4.06, 6.28), t(5005) = 9.12, p < .001). Within this model:

  • The effect of educacion rec (Ed Media) is statistically significant and negative (beta = -0.15, 95% CI (-0.30, -1.93e-03), t(5005) = -1.99, p = 0.047; Std. beta = -0.11, 95% CI (-0.22, -1.40e-03))
  • The effect of educacion rec (Ed Tecnica) is statistically non-significant and negative (beta = -0.13, 95% CI (-0.29, 0.04), t(5005) = -1.49, p = 0.136; Std. beta = -0.09, 95% CI (-0.21, 0.03))
  • The effect of educacion rec (Universidad o posgrado) is statistically non-significant and negative (beta = -0.09, 95% CI (-0.26, 0.07), t(5005) = -1.08, p = 0.280; Std. beta = -0.07, 95% CI (-0.19, 0.05))
  • The effect of educacion rec (Ns/Nr) is statistically non-significant and negative (beta = -0.02, 95% CI (-0.17, 0.13), t(5005) = -0.28, p = 0.783; Std. beta = -0.02, 95% CI (-0.12, 0.09))
  • The effect of libros rec (Más de 25) is statistically non-significant and positive (beta = 0.03, 95% CI (-0.05, 0.12), t(5005) = 0.77, p = 0.441; Std. beta = 0.02, 95% CI (-0.04, 0.08))
  • The effect of apod acc div is statistically significant and positive (beta = 0.08, 95% CI (0.05, 0.12), t(5005) = 4.46, p < .001; Std. beta = 0.06, 95% CI (0.04, 0.09))
  • The effect of civic (Medio) is statistically significant and positive (beta = 0.26, 95% CI (0.17, 0.36), t(5005) = 5.40, p < .001; Std. beta = 0.19, 95% CI (0.12, 0.26))
  • The effect of civic (Alto) is statistically significant and positive (beta = 0.38, 95% CI (0.28, 0.48), t(5005) = 7.54, p < .001; Std. beta = 0.28, 95% CI (0.20, 0.35))
  • The effect of ap dis is statistically significant and positive (beta = 0.13, 95% CI (0.06, 0.19), t(5005) = 3.79, p < .001; Std. beta = 0.06, 95% CI (0.03, 0.09))
  • The effect of mean apdis is statistically non-significant and positive (beta = 0.06, 95% CI (-0.14, 0.27), t(5005) = 0.60, p = 0.546; Std. beta = 9.53e-03, 95% CI (-0.02, 0.04))
  • The effect of etnia2 (Medio) is statistically non-significant and positive (beta = 0.12, 95% CI (-4.93e-03, 0.24), t(5005) = 1.88, p = 0.060; Std. beta = 0.08, 95% CI (-3.56e-03, 0.17))
  • The effect of etnia2 (Alto) is statistically non-significant and positive (beta = 0.10, 95% CI (-0.02, 0.23), t(5005) = 1.63, p = 0.103; Std. beta = 0.08, 95% CI (-0.02, 0.17))
  • The effect of inmigrante2 (Medio) is statistically non-significant and positive (beta = 0.02, 95% CI (-0.12, 0.16), t(5005) = 0.30, p = 0.761; Std. beta = 0.02, 95% CI (-0.09, 0.12))
  • The effect of inmigrante2 (Alto) is statistically non-significant and negative (beta = -0.07, 95% CI (-0.25, 0.12), t(5005) = -0.72, p = 0.470; Std. beta = -0.05, 95% CI (-0.18, 0.08))
  • The effect of escolaridad is statistically non-significant and positive (beta = 1.19e-03, 95% CI (-0.11, 0.11), t(5005) = 0.02, p = 0.983; Std. beta = 5.32e-04, 95% CI (-0.05, 0.05))

Standardized parameters were obtained by fitting the model on a standardized version of the dataset. 95% Confidence Intervals (CIs) and p-values were computed using a Wald t-distribution approximation., We fitted a linear mixed model (estimated using REML and nloptwrap optimizer) to predict est_acc_div with civic (formula: est_acc_div ~ educacion_rec + libros_rec + apod_acc_div + civic + ap_dis + mean_apdis + etnia2 + inmigrante2 + escolaridad). The model included mrbd as random effect (formula: ~1 | mrbd). The model’s total explanatory power is weak (conditional R2 = 0.03) and the part related to the fixed effects alone (marginal R2) is of 0.03. The model’s intercept, corresponding to civic = Bajo, is at 5.17 (95% CI (4.06, 6.28), t(5005) = 9.12, p < .001). Within this model:

  • The effect of educacion rec (Ed Media) is statistically significant and negative (beta = -0.15, 95% CI (-0.30, -1.93e-03), t(5005) = -1.99, p = 0.047; Std. beta = -0.11, 95% CI (-0.22, -1.40e-03))
  • The effect of educacion rec (Ed Tecnica) is statistically non-significant and negative (beta = -0.13, 95% CI (-0.29, 0.04), t(5005) = -1.49, p = 0.136; Std. beta = -0.09, 95% CI (-0.21, 0.03))
  • The effect of educacion rec (Universidad o posgrado) is statistically non-significant and negative (beta = -0.09, 95% CI (-0.26, 0.07), t(5005) = -1.08, p = 0.280; Std. beta = -0.07, 95% CI (-0.19, 0.05))
  • The effect of educacion rec (Ns/Nr) is statistically non-significant and negative (beta = -0.02, 95% CI (-0.17, 0.13), t(5005) = -0.28, p = 0.783; Std. beta = -0.02, 95% CI (-0.12, 0.09))
  • The effect of libros rec (Más de 25) is statistically non-significant and positive (beta = 0.03, 95% CI (-0.05, 0.12), t(5005) = 0.77, p = 0.441; Std. beta = 0.02, 95% CI (-0.04, 0.08))
  • The effect of apod acc div is statistically significant and positive (beta = 0.08, 95% CI (0.05, 0.12), t(5005) = 4.46, p < .001; Std. beta = 0.06, 95% CI (0.04, 0.09))
  • The effect of civic (Medio) is statistically significant and positive (beta = 0.26, 95% CI (0.17, 0.36), t(5005) = 5.40, p < .001; Std. beta = 0.19, 95% CI (0.12, 0.26))
  • The effect of civic (Alto) is statistically significant and positive (beta = 0.38, 95% CI (0.28, 0.48), t(5005) = 7.54, p < .001; Std. beta = 0.28, 95% CI (0.20, 0.35))
  • The effect of ap dis is statistically significant and positive (beta = 0.13, 95% CI (0.06, 0.19), t(5005) = 3.79, p < .001; Std. beta = 0.06, 95% CI (0.03, 0.09))
  • The effect of mean apdis is statistically non-significant and positive (beta = 0.06, 95% CI (-0.14, 0.27), t(5005) = 0.60, p = 0.546; Std. beta = 9.53e-03, 95% CI (-0.02, 0.04))
  • The effect of etnia2 (Medio) is statistically non-significant and positive (beta = 0.12, 95% CI (-4.93e-03, 0.24), t(5005) = 1.88, p = 0.060; Std. beta = 0.08, 95% CI (-3.56e-03, 0.17))
  • The effect of etnia2 (Alto) is statistically non-significant and positive (beta = 0.10, 95% CI (-0.02, 0.23), t(5005) = 1.63, p = 0.103; Std. beta = 0.08, 95% CI (-0.02, 0.17))
  • The effect of inmigrante2 (Medio) is statistically non-significant and positive (beta = 0.02, 95% CI (-0.12, 0.16), t(5005) = 0.30, p = 0.761; Std. beta = 0.02, 95% CI (-0.09, 0.12))
  • The effect of inmigrante2 (Alto) is statistically non-significant and negative (beta = -0.07, 95% CI (-0.25, 0.12), t(5005) = -0.72, p = 0.470; Std. beta = -0.05, 95% CI (-0.18, 0.08))
  • The effect of escolaridad is statistically non-significant and positive (beta = 1.19e-03, 95% CI (-0.11, 0.11), t(5005) = 0.02, p = 0.983; Std. beta = 5.32e-04, 95% CI (-0.05, 0.05))

Standardized parameters were obtained by fitting the model on a standardized version of the dataset. 95% Confidence Intervals (CIs) and p-values were computed using a Wald t-distribution approximation., We fitted a linear mixed model (estimated using REML and nloptwrap optimizer) to predict est_acc_div with ap_dis (formula: est_acc_div ~ educacion_rec + libros_rec + apod_acc_div + civic + ap_dis + mean_apdis + etnia2 + inmigrante2 + escolaridad). The model included mrbd as random effect (formula: ~1 | mrbd). The model’s total explanatory power is weak (conditional R2 = 0.03) and the part related to the fixed effects alone (marginal R2) is of 0.03. The model’s intercept, corresponding to ap_dis = 0, is at 5.17 (95% CI (4.06, 6.28), t(5005) = 9.12, p < .001). Within this model:

  • The effect of educacion rec (Ed Media) is statistically significant and negative (beta = -0.15, 95% CI (-0.30, -1.93e-03), t(5005) = -1.99, p = 0.047; Std. beta = -0.11, 95% CI (-0.22, -1.40e-03))
  • The effect of educacion rec (Ed Tecnica) is statistically non-significant and negative (beta = -0.13, 95% CI (-0.29, 0.04), t(5005) = -1.49, p = 0.136; Std. beta = -0.09, 95% CI (-0.21, 0.03))
  • The effect of educacion rec (Universidad o posgrado) is statistically non-significant and negative (beta = -0.09, 95% CI (-0.26, 0.07), t(5005) = -1.08, p = 0.280; Std. beta = -0.07, 95% CI (-0.19, 0.05))
  • The effect of educacion rec (Ns/Nr) is statistically non-significant and negative (beta = -0.02, 95% CI (-0.17, 0.13), t(5005) = -0.28, p = 0.783; Std. beta = -0.02, 95% CI (-0.12, 0.09))
  • The effect of libros rec (Más de 25) is statistically non-significant and positive (beta = 0.03, 95% CI (-0.05, 0.12), t(5005) = 0.77, p = 0.441; Std. beta = 0.02, 95% CI (-0.04, 0.08))
  • The effect of apod acc div is statistically significant and positive (beta = 0.08, 95% CI (0.05, 0.12), t(5005) = 4.46, p < .001; Std. beta = 0.06, 95% CI (0.04, 0.09))
  • The effect of civic (Medio) is statistically significant and positive (beta = 0.26, 95% CI (0.17, 0.36), t(5005) = 5.40, p < .001; Std. beta = 0.19, 95% CI (0.12, 0.26))
  • The effect of civic (Alto) is statistically significant and positive (beta = 0.38, 95% CI (0.28, 0.48), t(5005) = 7.54, p < .001; Std. beta = 0.28, 95% CI (0.20, 0.35))
  • The effect of ap dis is statistically significant and positive (beta = 0.13, 95% CI (0.06, 0.19), t(5005) = 3.79, p < .001; Std. beta = 0.06, 95% CI (0.03, 0.09))
  • The effect of mean apdis is statistically non-significant and positive (beta = 0.06, 95% CI (-0.14, 0.27), t(5005) = 0.60, p = 0.546; Std. beta = 9.53e-03, 95% CI (-0.02, 0.04))
  • The effect of etnia2 (Medio) is statistically non-significant and positive (beta = 0.12, 95% CI (-4.93e-03, 0.24), t(5005) = 1.88, p = 0.060; Std. beta = 0.08, 95% CI (-3.56e-03, 0.17))
  • The effect of etnia2 (Alto) is statistically non-significant and positive (beta = 0.10, 95% CI (-0.02, 0.23), t(5005) = 1.63, p = 0.103; Std. beta = 0.08, 95% CI (-0.02, 0.17))
  • The effect of inmigrante2 (Medio) is statistically non-significant and positive (beta = 0.02, 95% CI (-0.12, 0.16), t(5005) = 0.30, p = 0.761; Std. beta = 0.02, 95% CI (-0.09, 0.12))
  • The effect of inmigrante2 (Alto) is statistically non-significant and negative (beta = -0.07, 95% CI (-0.25, 0.12), t(5005) = -0.72, p = 0.470; Std. beta = -0.05, 95% CI (-0.18, 0.08))
  • The effect of escolaridad is statistically non-significant and positive (beta = 1.19e-03, 95% CI (-0.11, 0.11), t(5005) = 0.02, p = 0.983; Std. beta = 5.32e-04, 95% CI (-0.05, 0.05))

Standardized parameters were obtained by fitting the model on a standardized version of the dataset. 95% Confidence Intervals (CIs) and p-values were computed using a Wald t-distribution approximation., We fitted a linear mixed model (estimated using REML and nloptwrap optimizer) to predict est_acc_div with mean_apdis (formula: est_acc_div ~ educacion_rec + libros_rec + apod_acc_div + civic + ap_dis + mean_apdis + etnia2 + inmigrante2 + escolaridad). The model included mrbd as random effect (formula: ~1 | mrbd). The model’s total explanatory power is weak (conditional R2 = 0.03) and the part related to the fixed effects alone (marginal R2) is of 0.03. The model’s intercept, corresponding to mean_apdis = 0, is at 5.17 (95% CI (4.06, 6.28), t(5005) = 9.12, p < .001). Within this model:

  • The effect of educacion rec (Ed Media) is statistically significant and negative (beta = -0.15, 95% CI (-0.30, -1.93e-03), t(5005) = -1.99, p = 0.047; Std. beta = -0.11, 95% CI (-0.22, -1.40e-03))
  • The effect of educacion rec (Ed Tecnica) is statistically non-significant and negative (beta = -0.13, 95% CI (-0.29, 0.04), t(5005) = -1.49, p = 0.136; Std. beta = -0.09, 95% CI (-0.21, 0.03))
  • The effect of educacion rec (Universidad o posgrado) is statistically non-significant and negative (beta = -0.09, 95% CI (-0.26, 0.07), t(5005) = -1.08, p = 0.280; Std. beta = -0.07, 95% CI (-0.19, 0.05))
  • The effect of educacion rec (Ns/Nr) is statistically non-significant and negative (beta = -0.02, 95% CI (-0.17, 0.13), t(5005) = -0.28, p = 0.783; Std. beta = -0.02, 95% CI (-0.12, 0.09))
  • The effect of libros rec (Más de 25) is statistically non-significant and positive (beta = 0.03, 95% CI (-0.05, 0.12), t(5005) = 0.77, p = 0.441; Std. beta = 0.02, 95% CI (-0.04, 0.08))
  • The effect of apod acc div is statistically significant and positive (beta = 0.08, 95% CI (0.05, 0.12), t(5005) = 4.46, p < .001; Std. beta = 0.06, 95% CI (0.04, 0.09))
  • The effect of civic (Medio) is statistically significant and positive (beta = 0.26, 95% CI (0.17, 0.36), t(5005) = 5.40, p < .001; Std. beta = 0.19, 95% CI (0.12, 0.26))
  • The effect of civic (Alto) is statistically significant and positive (beta = 0.38, 95% CI (0.28, 0.48), t(5005) = 7.54, p < .001; Std. beta = 0.28, 95% CI (0.20, 0.35))
  • The effect of ap dis is statistically significant and positive (beta = 0.13, 95% CI (0.06, 0.19), t(5005) = 3.79, p < .001; Std. beta = 0.06, 95% CI (0.03, 0.09))
  • The effect of mean apdis is statistically non-significant and positive (beta = 0.06, 95% CI (-0.14, 0.27), t(5005) = 0.60, p = 0.546; Std. beta = 9.53e-03, 95% CI (-0.02, 0.04))
  • The effect of etnia2 (Medio) is statistically non-significant and positive (beta = 0.12, 95% CI (-4.93e-03, 0.24), t(5005) = 1.88, p = 0.060; Std. beta = 0.08, 95% CI (-3.56e-03, 0.17))
  • The effect of etnia2 (Alto) is statistically non-significant and positive (beta = 0.10, 95% CI (-0.02, 0.23), t(5005) = 1.63, p = 0.103; Std. beta = 0.08, 95% CI (-0.02, 0.17))
  • The effect of inmigrante2 (Medio) is statistically non-significant and positive (beta = 0.02, 95% CI (-0.12, 0.16), t(5005) = 0.30, p = 0.761; Std. beta = 0.02, 95% CI (-0.09, 0.12))
  • The effect of inmigrante2 (Alto) is statistically non-significant and negative (beta = -0.07, 95% CI (-0.25, 0.12), t(5005) = -0.72, p = 0.470; Std. beta = -0.05, 95% CI (-0.18, 0.08))
  • The effect of escolaridad is statistically non-significant and positive (beta = 1.19e-03, 95% CI (-0.11, 0.11), t(5005) = 0.02, p = 0.983; Std. beta = 5.32e-04, 95% CI (-0.05, 0.05))

Standardized parameters were obtained by fitting the model on a standardized version of the dataset. 95% Confidence Intervals (CIs) and p-values were computed using a Wald t-distribution approximation., We fitted a linear mixed model (estimated using REML and nloptwrap optimizer) to predict est_acc_div with etnia2 (formula: est_acc_div ~ educacion_rec + libros_rec + apod_acc_div + civic + ap_dis + mean_apdis + etnia2 + inmigrante2 + escolaridad). The model included mrbd as random effect (formula: ~1 | mrbd). The model’s total explanatory power is weak (conditional R2 = 0.03) and the part related to the fixed effects alone (marginal R2) is of 0.03. The model’s intercept, corresponding to etnia2 = Bajo, is at 5.17 (95% CI (4.06, 6.28), t(5005) = 9.12, p < .001). Within this model:

  • The effect of educacion rec (Ed Media) is statistically significant and negative (beta = -0.15, 95% CI (-0.30, -1.93e-03), t(5005) = -1.99, p = 0.047; Std. beta = -0.11, 95% CI (-0.22, -1.40e-03))
  • The effect of educacion rec (Ed Tecnica) is statistically non-significant and negative (beta = -0.13, 95% CI (-0.29, 0.04), t(5005) = -1.49, p = 0.136; Std. beta = -0.09, 95% CI (-0.21, 0.03))
  • The effect of educacion rec (Universidad o posgrado) is statistically non-significant and negative (beta = -0.09, 95% CI (-0.26, 0.07), t(5005) = -1.08, p = 0.280; Std. beta = -0.07, 95% CI (-0.19, 0.05))
  • The effect of educacion rec (Ns/Nr) is statistically non-significant and negative (beta = -0.02, 95% CI (-0.17, 0.13), t(5005) = -0.28, p = 0.783; Std. beta = -0.02, 95% CI (-0.12, 0.09))
  • The effect of libros rec (Más de 25) is statistically non-significant and positive (beta = 0.03, 95% CI (-0.05, 0.12), t(5005) = 0.77, p = 0.441; Std. beta = 0.02, 95% CI (-0.04, 0.08))
  • The effect of apod acc div is statistically significant and positive (beta = 0.08, 95% CI (0.05, 0.12), t(5005) = 4.46, p < .001; Std. beta = 0.06, 95% CI (0.04, 0.09))
  • The effect of civic (Medio) is statistically significant and positive (beta = 0.26, 95% CI (0.17, 0.36), t(5005) = 5.40, p < .001; Std. beta = 0.19, 95% CI (0.12, 0.26))
  • The effect of civic (Alto) is statistically significant and positive (beta = 0.38, 95% CI (0.28, 0.48), t(5005) = 7.54, p < .001; Std. beta = 0.28, 95% CI (0.20, 0.35))
  • The effect of ap dis is statistically significant and positive (beta = 0.13, 95% CI (0.06, 0.19), t(5005) = 3.79, p < .001; Std. beta = 0.06, 95% CI (0.03, 0.09))
  • The effect of mean apdis is statistically non-significant and positive (beta = 0.06, 95% CI (-0.14, 0.27), t(5005) = 0.60, p = 0.546; Std. beta = 9.53e-03, 95% CI (-0.02, 0.04))
  • The effect of etnia2 (Medio) is statistically non-significant and positive (beta = 0.12, 95% CI (-4.93e-03, 0.24), t(5005) = 1.88, p = 0.060; Std. beta = 0.08, 95% CI (-3.56e-03, 0.17))
  • The effect of etnia2 (Alto) is statistically non-significant and positive (beta = 0.10, 95% CI (-0.02, 0.23), t(5005) = 1.63, p = 0.103; Std. beta = 0.08, 95% CI (-0.02, 0.17))
  • The effect of inmigrante2 (Medio) is statistically non-significant and positive (beta = 0.02, 95% CI (-0.12, 0.16), t(5005) = 0.30, p = 0.761; Std. beta = 0.02, 95% CI (-0.09, 0.12))
  • The effect of inmigrante2 (Alto) is statistically non-significant and negative (beta = -0.07, 95% CI (-0.25, 0.12), t(5005) = -0.72, p = 0.470; Std. beta = -0.05, 95% CI (-0.18, 0.08))
  • The effect of escolaridad is statistically non-significant and positive (beta = 1.19e-03, 95% CI (-0.11, 0.11), t(5005) = 0.02, p = 0.983; Std. beta = 5.32e-04, 95% CI (-0.05, 0.05))

Standardized parameters were obtained by fitting the model on a standardized version of the dataset. 95% Confidence Intervals (CIs) and p-values were computed using a Wald t-distribution approximation., We fitted a linear mixed model (estimated using REML and nloptwrap optimizer) to predict est_acc_div with inmigrante2 (formula: est_acc_div ~ educacion_rec + libros_rec + apod_acc_div + civic + ap_dis + mean_apdis + etnia2 + inmigrante2 + escolaridad). The model included mrbd as random effect (formula: ~1 | mrbd). The model’s total explanatory power is weak (conditional R2 = 0.03) and the part related to the fixed effects alone (marginal R2) is of 0.03. The model’s intercept, corresponding to inmigrante2 = Bajo, is at 5.17 (95% CI (4.06, 6.28), t(5005) = 9.12, p < .001). Within this model:

  • The effect of educacion rec (Ed Media) is statistically significant and negative (beta = -0.15, 95% CI (-0.30, -1.93e-03), t(5005) = -1.99, p = 0.047; Std. beta = -0.11, 95% CI (-0.22, -1.40e-03))
  • The effect of educacion rec (Ed Tecnica) is statistically non-significant and negative (beta = -0.13, 95% CI (-0.29, 0.04), t(5005) = -1.49, p = 0.136; Std. beta = -0.09, 95% CI (-0.21, 0.03))
  • The effect of educacion rec (Universidad o posgrado) is statistically non-significant and negative (beta = -0.09, 95% CI (-0.26, 0.07), t(5005) = -1.08, p = 0.280; Std. beta = -0.07, 95% CI (-0.19, 0.05))
  • The effect of educacion rec (Ns/Nr) is statistically non-significant and negative (beta = -0.02, 95% CI (-0.17, 0.13), t(5005) = -0.28, p = 0.783; Std. beta = -0.02, 95% CI (-0.12, 0.09))
  • The effect of libros rec (Más de 25) is statistically non-significant and positive (beta = 0.03, 95% CI (-0.05, 0.12), t(5005) = 0.77, p = 0.441; Std. beta = 0.02, 95% CI (-0.04, 0.08))
  • The effect of apod acc div is statistically significant and positive (beta = 0.08, 95% CI (0.05, 0.12), t(5005) = 4.46, p < .001; Std. beta = 0.06, 95% CI (0.04, 0.09))
  • The effect of civic (Medio) is statistically significant and positive (beta = 0.26, 95% CI (0.17, 0.36), t(5005) = 5.40, p < .001; Std. beta = 0.19, 95% CI (0.12, 0.26))
  • The effect of civic (Alto) is statistically significant and positive (beta = 0.38, 95% CI (0.28, 0.48), t(5005) = 7.54, p < .001; Std. beta = 0.28, 95% CI (0.20, 0.35))
  • The effect of ap dis is statistically significant and positive (beta = 0.13, 95% CI (0.06, 0.19), t(5005) = 3.79, p < .001; Std. beta = 0.06, 95% CI (0.03, 0.09))
  • The effect of mean apdis is statistically non-significant and positive (beta = 0.06, 95% CI (-0.14, 0.27), t(5005) = 0.60, p = 0.546; Std. beta = 9.53e-03, 95% CI (-0.02, 0.04))
  • The effect of etnia2 (Medio) is statistically non-significant and positive (beta = 0.12, 95% CI (-4.93e-03, 0.24), t(5005) = 1.88, p = 0.060; Std. beta = 0.08, 95% CI (-3.56e-03, 0.17))
  • The effect of etnia2 (Alto) is statistically non-significant and positive (beta = 0.10, 95% CI (-0.02, 0.23), t(5005) = 1.63, p = 0.103; Std. beta = 0.08, 95% CI (-0.02, 0.17))
  • The effect of inmigrante2 (Medio) is statistically non-significant and positive (beta = 0.02, 95% CI (-0.12, 0.16), t(5005) = 0.30, p = 0.761; Std. beta = 0.02, 95% CI (-0.09, 0.12))
  • The effect of inmigrante2 (Alto) is statistically non-significant and negative (beta = -0.07, 95% CI (-0.25, 0.12), t(5005) = -0.72, p = 0.470; Std. beta = -0.05, 95% CI (-0.18, 0.08))
  • The effect of escolaridad is statistically non-significant and positive (beta = 1.19e-03, 95% CI (-0.11, 0.11), t(5005) = 0.02, p = 0.983; Std. beta = 5.32e-04, 95% CI (-0.05, 0.05))

Standardized parameters were obtained by fitting the model on a standardized version of the dataset. 95% Confidence Intervals (CIs) and p-values were computed using a Wald t-distribution approximation. and We fitted a linear mixed model (estimated using REML and nloptwrap optimizer) to predict est_acc_div with escolaridad (formula: est_acc_div ~ educacion_rec + libros_rec + apod_acc_div + civic + ap_dis + mean_apdis + etnia2 + inmigrante2 + escolaridad). The model included mrbd as random effect (formula: ~1 | mrbd). The model’s total explanatory power is weak (conditional R2 = 0.03) and the part related to the fixed effects alone (marginal R2) is of 0.03. The model’s intercept, corresponding to escolaridad = 0, is at 5.17 (95% CI (4.06, 6.28), t(5005) = 9.12, p < .001). Within this model:

  • The effect of educacion rec (Ed Media) is statistically significant and negative (beta = -0.15, 95% CI (-0.30, -1.93e-03), t(5005) = -1.99, p = 0.047; Std. beta = -0.11, 95% CI (-0.22, -1.40e-03))
  • The effect of educacion rec (Ed Tecnica) is statistically non-significant and negative (beta = -0.13, 95% CI (-0.29, 0.04), t(5005) = -1.49, p = 0.136; Std. beta = -0.09, 95% CI (-0.21, 0.03))
  • The effect of educacion rec (Universidad o posgrado) is statistically non-significant and negative (beta = -0.09, 95% CI (-0.26, 0.07), t(5005) = -1.08, p = 0.280; Std. beta = -0.07, 95% CI (-0.19, 0.05))
  • The effect of educacion rec (Ns/Nr) is statistically non-significant and negative (beta = -0.02, 95% CI (-0.17, 0.13), t(5005) = -0.28, p = 0.783; Std. beta = -0.02, 95% CI (-0.12, 0.09))
  • The effect of libros rec (Más de 25) is statistically non-significant and positive (beta = 0.03, 95% CI (-0.05, 0.12), t(5005) = 0.77, p = 0.441; Std. beta = 0.02, 95% CI (-0.04, 0.08))
  • The effect of apod acc div is statistically significant and positive (beta = 0.08, 95% CI (0.05, 0.12), t(5005) = 4.46, p < .001; Std. beta = 0.06, 95% CI (0.04, 0.09))
  • The effect of civic (Medio) is statistically significant and positive (beta = 0.26, 95% CI (0.17, 0.36), t(5005) = 5.40, p < .001; Std. beta = 0.19, 95% CI (0.12, 0.26))
  • The effect of civic (Alto) is statistically significant and positive (beta = 0.38, 95% CI (0.28, 0.48), t(5005) = 7.54, p < .001; Std. beta = 0.28, 95% CI (0.20, 0.35))
  • The effect of ap dis is statistically significant and positive (beta = 0.13, 95% CI (0.06, 0.19), t(5005) = 3.79, p < .001; Std. beta = 0.06, 95% CI (0.03, 0.09))
  • The effect of mean apdis is statistically non-significant and positive (beta = 0.06, 95% CI (-0.14, 0.27), t(5005) = 0.60, p = 0.546; Std. beta = 9.53e-03, 95% CI (-0.02, 0.04))
  • The effect of etnia2 (Medio) is statistically non-significant and positive (beta = 0.12, 95% CI (-4.93e-03, 0.24), t(5005) = 1.88, p = 0.060; Std. beta = 0.08, 95% CI (-3.56e-03, 0.17))
  • The effect of etnia2 (Alto) is statistically non-significant and positive (beta = 0.10, 95% CI (-0.02, 0.23), t(5005) = 1.63, p = 0.103; Std. beta = 0.08, 95% CI (-0.02, 0.17))
  • The effect of inmigrante2 (Medio) is statistically non-significant and positive (beta = 0.02, 95% CI (-0.12, 0.16), t(5005) = 0.30, p = 0.761; Std. beta = 0.02, 95% CI (-0.09, 0.12))
  • The effect of inmigrante2 (Alto) is statistically non-significant and negative (beta = -0.07, 95% CI (-0.25, 0.12), t(5005) = -0.72, p = 0.470; Std. beta = -0.05, 95% CI (-0.18, 0.08))
  • The effect of escolaridad is statistically non-significant and positive (beta = 1.19e-03, 95% CI (-0.11, 0.11), t(5005) = 0.02, p = 0.983; Std. beta = 5.32e-04, 95% CI (-0.05, 0.05))

Standardized parameters were obtained by fitting the model on a standardized version of the dataset. 95% Confidence Intervals (CIs) and p-values were computed using a Wald t-distribution approximation.

The model’s total explanatory power is weak (conditional R2 = 0.03) and the part related to the fixed effects alone (marginal R2) is of 0.03

Column

Model information

---
title: "Regression model summary from `{easystats}`"
output: 
  flexdashboard::flex_dashboard:
    theme:
      version: 4
      # bg: "#101010"
      # fg: "#FDF7F7" 
      primary: "#0054AD"
      base_font:
        google: Prompt
      code_font:
        google: JetBrains Mono
params:
  model: model
  check_model_args: check_model_args
  parameters_args: parameters_args
  performance_args: performance_args
---

```{r setup, include=FALSE}
library(flexdashboard)
library(easystats)

# Since not all regression model are supported across all packages, make the
# dashboard chunks more fault-tolerant. E.g. a model might be supported in
# `{parameters}`, but not in `{report}`.
#
# For this reason, `error = TRUE`
knitr::opts_chunk$set(
  error = TRUE,
  out.width = "100%"
)
```

```{r}
# Get user-specified model data
model <- params$model

# Is it supported by `{easystats}`? Skip evaluation of the following chunks if not.
is_supported <- insight::is_model_supported(model)

if (!is_supported) {
  unsupported_message <- sprintf(
    "Unfortunately, objects of class '%s' are not yet supported in {easystats}.\n
    For a list of supported models, see `insight::supported_models()`.",
    class(model)[1]
  )
}
```


Model fit 
=====================================  

Column {data-width=700}
-----------------------------------------------------------------------

### Assumption checks

```{r check-model, eval=is_supported, fig.height=10, fig.width=10}
check_model_args <- c(list(model), params$check_model_args)
do.call(performance::check_model, check_model_args)
```

```{r, eval=!is_supported}
cat(unsupported_message)
```

Column {data-width=300}
-----------------------------------------------------------------------

### Indices of model fit

```{r, eval=is_supported}
# `{performance}`
performance_args <- c(list(model), params$performance_args)
table_performance <- do.call(performance::performance, performance_args)
print_md(table_performance, layout = "vertical", caption = NULL)
```


```{r, eval=!is_supported}
cat(unsupported_message)
```

For interpretation of performance metrics, please refer to <a href="https://easystats.github.io/performance/reference/model_performance.html" target="_blank">this documentation</a>.

Parameter estimates
=====================================  

Column {data-width=550}
-----------------------------------------------------------------------

### Plot

```{r dot-whisker, eval=is_supported}
# `{parameters}`
parameters_args <- c(list(model), params$parameters_args)
table_parameters <- do.call(parameters::parameters, parameters_args)

plot(table_parameters)
```


```{r, eval=!is_supported}
cat(unsupported_message)
```

Column {data-width=450}
-----------------------------------------------------------------------

### Tabular summary

```{r, eval=is_supported}
print_md(table_parameters, caption = NULL)
```


```{r, eval=!is_supported}
cat(unsupported_message)
```

To find out more about table summary options, please refer to <a href="https://easystats.github.io/parameters/reference/model_parameters.html" target="_blank">this documentation</a>.


Predicted Values
=====================================  

Column {data-width=600}
-----------------------------------------------------------------------

### Plot

```{r expected-values, eval=is_supported, fig.height=10, fig.width=10}
# `{modelbased}`
int_terms <- find_interactions(model, component = "conditional", flatten = TRUE)
con_terms <- find_variables(model)$conditional

if (is.null(int_terms)) {
  model_terms <- con_terms
} else {
  model_terms <- clean_names(int_terms)
  int_terms <- unique(unlist(strsplit(clean_names(int_terms), ":", fixed = TRUE)))
  model_terms <- c(model_terms, setdiff(con_terms, int_terms))
}

text_modelbased <- lapply(unique(model_terms), function(i) {
  grid <- get_datagrid(model, at = i, range = "grid", preserve_range = FALSE)
  estimate_expectation(model, data = grid)
})

ggplot2::theme_set(theme_modern())
# all_plots <- lapply(text_modelbased, function(i) {
#   out <- do.call(visualisation_recipe, c(list(i), modelbased_args))
#   plot(out) + ggplot2::ggtitle("")
# })
all_plots <- lapply(text_modelbased, function(i) {
  out <- visualisation_recipe(i, show_data = "none")
  plot(out) + ggplot2::ggtitle("")
})

see::plots(all_plots, n_columns = round(sqrt(length(text_modelbased))))
```


```{r, eval=!is_supported}
cat(unsupported_message)
```

Column {data-width=400}
-----------------------------------------------------------------------

### Tabular summary

```{r, eval=is_supported, results="asis"}
for (i in text_modelbased) {
  tmp <- print_md(i)
  tmp <- gsub("Variable predicted", "\nVariable predicted", tmp)
  tmp <- gsub("Predictors modulated", "\nPredictors modulated", tmp)
  tmp <- gsub("Predictors controlled", "\nPredictors controlled", tmp)
  print(tmp)
}
```


```{r, eval=!is_supported}
cat(unsupported_message)
```


Text reports
=====================================    

Column {data-width=500}
-----------------------------------------------------------------------

### Textual summary

```{r, eval=is_supported, results='asis', collapse=TRUE}
# `{report}`
text_report <- report(model)
text_report_performance <- report_performance(model)

gsub("]", ")", gsub("[", "(", text_report, fixed = TRUE), fixed = TRUE)
cat("\n")
gsub("]", ")", gsub("[", "(", text_report_performance, fixed = TRUE), fixed = TRUE)
```


```{r, eval=!is_supported}
cat(unsupported_message)
```

Column {data-width=500}
-----------------------------------------------------------------------

### Model information

```{r, eval=is_supported}
model_info_data <- insight::model_info(model)

model_info_data <- datawizard::data_to_long(as.data.frame(model_info_data))

DT::datatable(model_info_data)
```

```{r, eval=!is_supported}
cat(unsupported_message)
```